package com.egov.wrdmp.reporting.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name="Reports")
public class Report {


//Only using @ GeneratedValue causes "hibernate_sequence missing" error in postgres.
//A sequence needs to be created in the db inorder to make GeneratorType.SEQUENCE to work.
@Column(name="id")
@Id	
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "id_sequence")
@SequenceGenerator(name = "id_sequence", sequenceName = "id_sequence")
Integer id;
public Integer getId() {
	return id;
}
public void setId(Integer id) {
	this.id = id;
}
@Column(name="reportName")
String reportName;

@Column(name="reportFormat")
String reportFormat;

@Column(name="templateName")
String templateName;

@Column(name="language")
String language;

@Column(name="reportQuery")
String reportQuery;

@Column(name="reportLink")
String reportLink;


public String getReportName() {
	return reportName;
}
public void setReportName(String reportName) {
	this.reportName = reportName;
}
public String getReportFormat() {
	return reportFormat;
}
public void setReportFormat(String reportFormat) {
	this.reportFormat = reportFormat;
}
public String getTemplateName() {
	return templateName;
}
public void setTemplateName(String templateName) {
	this.templateName = templateName;
}
public String getLanguage() {
	return language;
}
public void setLanguage(String language) {
	this.language = language;
}
public String getReportQuery() {
	return reportQuery;
}
public void setReportQuery(String reportQuery) {
	this.reportQuery = reportQuery;
}
public String getReportLink() {
	return reportLink;
}
public void setReportLink(String reportLink) {
	this.reportLink = reportLink;
}

}
